package com.lkr.webapp.websocket;

import org.springframework.messaging.handler.annotation.DestinationVariable;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.stereotype.Controller;

/**
 * chat control
 *
 * @author lss
 * @date 2019-01-20, Sun
 */
@Controller
public class ChatControl {


    // @RequestParam("fooId") String fooId, @RequestParam("ufId") String ufId
    @MessageMapping("/join/{fooId}/{ufId}")
    public void joinRoom(@DestinationVariable("fooId") String fooId, @DestinationVariable("ufId") String ufId) {

        System.out.println("----------------------");
        System.out.println(fooId);
        System.out.println(ufId);
    }


}
